From efbac0906142738366f4264f65987a180f8869be Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 23 Mar 2006 14:39:56 +0000 Subject: [PATCH] make sure that gdk_drag_event() is called when track_motion is TRUE to 2006-03-23 Carlos Garnacho * gtk/gtkdnd.c (gtk_drag_dest_motion): make sure that gdk_drag_event() is called when track_motion is TRUE to receive drag_motion and drag_leave events properly. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ gtk/gtkdnd.c | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 730d65cd31..7768fa11b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-03-23 Carlos Garnacho + + * gtk/gtkdnd.c (gtk_drag_dest_motion): make sure that gdk_drag_event() + is called when track_motion is TRUE to receive drag_motion and + drag_leave events properly. + 2006-03-22 Matthias Clasen * gtk/gtknotebook.c (gtk_notebook_remove): Emit the ::page-removed diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 730d65cd31..7768fa11b4 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2006-03-23 Carlos Garnacho + + * gtk/gtkdnd.c (gtk_drag_dest_motion): make sure that gdk_drag_event() + is called when track_motion is TRUE to receive drag_motion and + drag_leave events properly. + 2006-03-22 Matthias Clasen * gtk/gtknotebook.c (gtk_notebook_remove): Emit the ::page-removed diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index 4ab402dcf4..ca55e2d859 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -1985,7 +1985,7 @@ gtk_drag_dest_motion (GtkWidget *widget, return TRUE; } - if (site->flags & GTK_DEST_DEFAULT_MOTION) + if (site->track_motion || site->flags & GTK_DEST_DEFAULT_MOTION) { if (context->suggested_action & site->actions) action = context->suggested_action; -- 2.30.2